import request from '@/utils/request'
import { requestPath } from '@/utils/global.js'

export function labelDetCourseAPI(params) { //推荐课程
    return request({
        url: `${requestPath.resource}/course-library/recommend/list`,
        method: 'get',
        params
    })
}

export function labelDetReadAPI(params) { //推荐阅读
    return request({
        url: `${requestPath.resource1}/resource/label/info/${params.oid}`,
        method: 'get',
        params
    })
}

export function getLabelListPAI() { //标签列表
    return request({
        url: `${requestPath.resource1}/label/list?pageNum=1&pageSize=99`,
        method: 'get',
    })
}

export function labelDetSubAPI(params) { //推荐专题（大咖说说）
    return request({
        url: `${requestPath.resource1}/project-library/list`,
        method: 'get',
        params
    })
}

export function getLabelDetailsListPAI(params) { // 资源类型列表（tab展开全部）
    return request({
        url: `${requestPath.resource1}/resource/label/Type/list`,
        method: 'get',
        params
    })
}

export function getlabelDetailsNewHatListAPI(params) { // 默认最热最新
    return request({
        url: `${requestPath.resource1}/resource/label/info`,
        method: 'get',
        params
    })
}